package org.example.services;

import org.example.domain.User;
import org.example.domain.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserService {

    ResponseResult getUserById(int userId);

    ResponseResult saveUser(User user);

    ResponseResult resetPasswordById(int userId);

    ResponseResult deleteUserById(int userId);

    ResponseResult updateUser(User user);

    ResponseResult getUserByPage(int currentPage, int pageSize);

    ResponseResult getUserByUsername(int currentPage, int pageSize, String username);

    ResponseResult updateUserPassword(int userId, String encryptPassword, String encryptNewPassword);

    ResponseResult uploadIcon(MultipartFile file, int userId);

    ResponseResult getAvatarUserId(List<Integer> userIds);
}
